package com.liuanbang.saro.sarodemo.adapter.viewholder;

import android.support.v7.widget.RecyclerView;

import com.liuanbang.saro.sarodemo.R;
import com.liuanbang.saro.sarodemo.base.AbstractRecyclerViewAdapter;

import java.util.List;

/**
 * Created by  on 2016/8/26.
 * RecycleViewADapter 基类使用示例
 */
public class DemoRecycleViewAdapter extends AbstractRecyclerViewAdapter {

    public DemoRecycleViewAdapter(List operationList, int templateViewId, RecyclerView recyclerView) {
        super(operationList, templateViewId, recyclerView);
    }

    @Override
    public void convert(CommentViewHolder holder, Object o) {
        //这里使用的时候需要进行强 转一下
        holder.setText(R.id.itemTextView, (String) o);
    }

}

